package com.yuhong.springbootinit.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yuhong.springbootinit.model.dto.invitation.InvitationQueryRequest;
import com.yuhong.springbootinit.model.entity.Invitation;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yuhong.springbootinit.model.vo.InvitationVO;

import javax.servlet.http.HttpServletRequest;

/**
* @author 10467
* @description 针对表【invitation】的数据库操作Service
* @createDate 2025-02-22 13:52:10
*/
public interface InvitationService extends IService<Invitation> {

    void validInvitation(Invitation invitation, boolean add);

    InvitationVO getInvitationVO(Invitation invitation, HttpServletRequest request);

    Page<InvitationVO> getInvitationVOPage(Page<Invitation> invitationPage, HttpServletRequest request);

    /**
     * 获取查询条件
     *
     * @param positionQueryRequest
     * @return
     */
    QueryWrapper<Invitation> getQueryWrapper(InvitationQueryRequest positionQueryRequest);

}
